// pages/main/main.js
Page({

  /**
   * 页面的初始数据
   */
  data: {

  },
  formSubmit: function(e) {
    wx.request({
      url: 'https://www.hkzhaoscut.top/adminlogin',
      data: {
        username: e.detail.value.un,
        password: e.detail.value.pwd
      },
      success: function(res) {
        if (res.data == 1) {
          wx.redirectTo({
            url: '../manage/manage',
          })
        } else {
          wx.showModal({
            content: '用户名或者密码错误！',
            cancelText: "重新输入",

          })
        }

      }
    })

  },




})